#include <iostream>
using namespace std;
class Base1 {
    virtual void f() {cout << "Base::f"<<endl;}
    virtual void g() {cout << "Base::g"<<endl;}
    virtual void h() {cout << "Base::h"<<endl;}
    int a;
    char c;
};
class Base2 {
    int a;
    static int b;
    char c;
};
typedef void (*Fun)();
int main(int argc, char *argv[])
{
    Base1 b;
    Fun p = (Fun)*((int *)*(int *)(&b)+1);
    p();
    cout << sizeof(Base1) << endl;
    cout << sizeof(Base2) << endl;
    return 0;
}
